import 'package:mvvm_provider/page/mine/data/model/info_model.dart';
import 'package:mvvm_provider/page/mine/states/mine_detail_type2_state.dart';
import '../../../base/base_view_model.dart';

class MineDetailLikeViewModel extends BaseViewModel<MineDetailType2State> {
  MineDetailLikeViewModel() : super(MineDetailType2State());

  /// 点赞
  void changeLikeStatus(InfoListModel model) {
    state.isLike = model.isLike = !model.isLike;
    notifyListeners();
  }
}
